namespace Prometheus.Binding.Validation.Rules.Simple
{
    public class proNotNullRule : proValidationRuleBase
    {
        public proNotNullRule()
        {
            ErrorText = "You must provide a value";
        }

        public override void Validate(object value, object dataContext)
        {
            if (value == null) ThrowInvalid();
        }
    }
}